export interface Menu {
  name: string,
  title?: string,
  page: string,
  complete?: boolean,
  noHeader?: boolean,
}

interface MenuGroup {
  name: string,
  children: Menu[],
}

export const MenuGroups: MenuGroup[] = [
  /*{
    name: '测试', children: [
      { name: 'Test', title: '测试手动渲染实例', page: '/test/TestGroupTransition', complete: false },
      { name: 'Test', title: '全局注册的组件', page: '/test/test', complete: false },
      /!*{name: 'Drag', title: '测试拖拽节点', page: '/test/test-drag', complete: false},
      {name: 'Svg', title: '测试svg', page: '/test/test-svg', complete: false},
      {name: 'Canvas', title: '测试canvas', page: '/test/test-canvas', complete: false},
      {name: 'High', title: '测试高阶组件', page: '/test/test-high', complete: false},
      {name: 'Listener', title: '测试事件', page: '/test/test-listener', complete: false},
      {name: 'Filter', title: '异步过滤器', page: '/test/test-filter', complete: false},
      {name: 'List Draggier', title: '列表拖拽排序', page: '/test/test-list-draggier', complete: false},
      {name: '传递属性给根节点组件热更新报错', title: '列表拖拽排序', page: '/test/test-pass-attrs-hot-reload/test-pass-attrs-hot-reload', complete: false},*!/
    ]
  },*/
  /*{
      name: '组合函数', children: [
          {name: 'useSlots', page: '/use/DemoUseSlots', complete: false},
          {name: 'useScopedSlots', page: '/use/DemoUseScopedSlots', complete: false},
          {name: 'useModel', page: '/use/DemoUseModel', complete: false},
          {name: 'useStyles', page: '/use/DemoUseStyles', complete: false},
          {name: 'useStyle', page: '/use/DemoUseStyle', complete: false},
          {name: 'useRefs', page: '/use/DemoUseRefs', complete: false},
          {name: 'useRefList', page: '/use/DemoUseRefList', complete: false},
          {name: 'useEvent', page: '/use/DemoUseEvent', complete: false},
          // {name: 'useProps', page: '/use/useProps', complete: false},
          {name: 'useCollect', page: '/use/DemoUseCollect', complete: false},
          {name: 'Transition', page: '/normal/DemoTransition', complete: false},
          {name: 'PlCollapseTransition', page: '/normal/DemoCollapseTransition', complete: false},
      ]
  },*/
  {
    name: '基础', children: [
      // { name: 'Color', title: '颜色', page: '/normal/DemoColor', complete: false },
      // { name: 'Icon', title: '图标', page: '/normal/DemoIcon', complete: false },
      { name: 'Button', title: '按钮', page: '/normal/DemoButton', complete: true },
      // { name: 'Grid', title: '栅格', page: '/normal/DemoGrid', complete: false },
    ]
  },
  {
    name: '表单元素', children: [
      { name: 'Input', title: '输入框', page: '/normal/DemoInput', complete: true },
      { name: 'InputNumber', title: '数字输入', page: '/normal/DemoInputNumber', complete: true },
      { name: 'Select', title: '下拉选择', page: '/normal/DemoSelect', complete: true },
      { name: 'DatePicker', title: '日期选择', page: '/normal/DemoDatePicker', complete: true },
      { name: 'TimePicker', title: '时间选择', page: '/normal/DemoTimePicker', complete: true },
      { name: 'Radio', title: '单选', page: '/normal/DemoRadio', complete: true },
      { name: 'Checkbox', title: '多选', page: '/normal/DemoCheckbox', complete: true },
      { name: 'Cascader', title: '级联选择', page: '/normal/DemoCascader', complete: true },
      { name: 'AutoComplete', title: '自动补全', page: '/normal/DemoAutoComplete', complete: true },
      { name: 'ColorPicker', title: '颜色选择', page: '/normal/DemoColorPicker', complete: true },
      { name: 'Rate', title: '评分', page: '/normal/DemoRate', complete: true },
      { name: 'Slider', title: '滑块', page: '/normal/DemoSlider', complete: true },
      { name: 'Switch', title: '开关按钮', page: '/normal/DemoSwitch', complete: true },
      { name: 'Image', title: '图片上传', page: '/normal/DemoImage', complete: true },
      { name: 'Segmented', title: '分段', page: '/normal/DemoSegmented', complete: true },
    ]
  },
  {
    name: '表单示例', children: [
      { name: 'Form', title: '表单基础', page: '/form/DemoFormBasic', complete: true },
      { name: 'Form', title: '表单多列', page: '/form/DemoFormLayout', complete: true },
      { name: 'Form', title: '纵向表单', page: '/form/DemoFormVertical', complete: true },
      { name: 'Form', title: '表单尺寸', page: '/form/DemoFormSize', complete: true },
      { name: 'Form', title: '表单控制', page: '/form/DemoFormEditControl', complete: true },
      { name: 'Form', title: '校验blur', page: '/form/DemoFormBlur', complete: true },
      { name: 'Form', title: '表单组件', page: '/form/DemoFormElement', complete: true },
      // { name: 'Form', title: '表单校验', page: '/form/DemoFormValidate', complete: false },
      // { name: 'Form', title: '关联字段', page: '/form/DemoFormAssociateFields', complete: false },
      // { name: 'Form', title: '校验模式', page: '/form/DemoFormValidateMode', complete: false },
      { name: 'Form', title: '动态表单项', page: '/form/DemoFormDynamicFields', complete: true },
      { name: 'Form', title: '简写表单', page: '/form/DemoFormSimplify', complete: true },
    ]
  },
  {
    name: '视图', children: [
      { name: 'VirtualList', title: '虚拟列表', page: '/normal/DemoVirtualList', complete: true }
    ]
  },
  {
    name: '其他', children: [
      // { name: 'Drawer', title: '数字输入', page: '/normal/DemoDrawer', complete: false },
      // { name: 'Modal', title: '数字输入', page: '/normal/DemoModal', complete: false },
      { name: 'Dialog', title: '弹框', page: '/normal/DemoDialog', complete: true },
      { name: 'Scroll', title: '滚动条', page: '/normal/DemoScroll', complete: true },
      { name: 'Popup', title: '浮层', page: '/normal/DemoPopup', complete: true },
      { name: 'Tooltip', title: '提示', page: '/normal/DemoTooltip', complete: true },
      { name: 'Dropdown', title: '下拉菜单', page: '/normal/DemoDropdown', complete: true },
      { name: 'Transition', title: '过度动画', page: '/normal/DemoTransition', complete: true },
      { name: 'LoadingMask', title: '加载遮罩', page: '/normal/DemoLoading', complete: true },
      { name: 'Badge', title: '标记', page: '/normal/DemoBadge', complete: true },
      { name: 'Segment', title: '分段', page: '/normal/DemoSegment', complete: true },
    ]
  },
  {
    name: '服务', children: [
      { name: '$dialog', title: '对话框服务', page: '/service/DemoDialogService', complete: true },
      { name: '$popup', title: '浮层服务', page: '/service/DemoPopupService', complete: true },
    ]
  },
  {
    name: '表格', children: [
      { name: 'Virtual', title: 'virtual-table', page: '/table/DemoVirtualTable', complete: true },
      { name: 'Table', title: '基础表格', page: '/table/DemoTableBasic', complete: true },
      { name: 'Check', title: '单选多选', page: '/table/DemoTableCheck', complete: true },
      { name: 'Fixed', title: '固定列', page: '/table/DemoTableFixed', complete: true },
      { name: 'Slots', title: '列作用域插槽', page: '/table/DemoTableSlots', complete: true },
      { name: 'Formatter', title: '格式化值', page: '/table/DemoTableFormatter', complete: true },
      { name: 'OverflowTooltip', title: '溢出显示', page: '/table/DemoTableOverflowTooltip', complete: true },
      { name: 'Edit Control', title: '编辑控制', page: '/table/DemoTableEdit', complete: true },
      { name: 'Expand', title: '展开列', page: '/table/DemoTableExpand', complete: true },
      { name: 'Span', title: '合并单元格', page: '/table/DemoTableSpan', complete: true },
      { name: 'Tree', title: '树形表格', page: '/table/DemoTableTree', complete: true },
      { name: 'Draggable', title: '排序列', page: '/table/DemoTableRowDraggable', complete: true },
      { name: 'RowCol', title: '行列排序', page: '/table/DemoTableColDraggable', complete: true },
      { name: 'Class Style', title: '行列样式', page: '/table/DemoTableClassAndStyle', complete: true },
      { name: 'Operation', title: '操作列', page: '/table/DemoPlcOperation', complete: true },
    ]
  },
  {
    name: "表格列",
    children: [
      { name: 'Edit Columns', title: '简单列组件', page: '/columns/DemoTableColumns', complete: true, },
      { name: 'PlcSelect', title: '下拉选择列', page: '/columns/DemoPlcSelect', complete: true, },
      { name: 'PlcDate', title: '日期列', page: '/columns/DemoPlcDate', complete: true, },
      { name: 'PlcTime', title: '时间列', page: '/columns/DemoPlcTime', complete: true, },
      { name: 'PlcAddress', title: '地址列', page: '/columns/DemoPlcAddress', complete: true, },
    ],
  },
  {
    name: '业务组件',
    children: [
      { name: 'Address', title: '地址选择', page: '/bus/DemoAddress', complete: true },
      { name: 'AddressCascade', title: '地址级联选择', page: '/bus/DemoAddressCascade', complete: true },
      { name: 'Filter', title: '筛选', page: '/bus/DemoFilter', complete: true },
      { name: 'Object', title: '对象选择', page: '/AutoTable/AutoTableObjectPicker', complete: true },
      { name: 'Ov', title: '选项集', page: '/AutoTable/AutoTableOvList', complete: true },
    ],
  },
  {
    name: 'AutoTable', children: [
      { name: 'BasicUsage', title: '基本示例', page: '/AutoTable/AutoTableBasicUsage', complete: true },
      { name: 'ColumnGroup', title: '分组示例', page: '/AutoTable/AutoTableGroupUsage', complete: true },
      { name: 'DefaultSearch', title: '默认搜索', page: '/AutoTable/AutoTableDefaultSearch', complete: true },
      { name: 'ParentCascade', title: '父子表', page: '/AutoTable/AutoTableCascade', complete: true },
      { name: 'RowFormatter', title: '行数据格式化', page: '/AutoTable/AutoTableRowFormatter', complete: true },
      { name: 'FileList', title: '文件列表', page: '/AutoTable/AutoTableFiles', complete: true },
      { name: 'ImageList', title: '图片列', page: '/AutoTable/AutoTableProductList', complete: true },
    ]
  },
  {
    name: 'AutoTable高度控制', children: [
      { name: 'FHFR', title: '固定高度:固定行数', page: '/AutoTable/FixedHeightFixedRow', complete: true, /*noHeader: true*/ },
      { name: 'FHAR', title: '固定高度:自动行数', page: '/AutoTable/FixedHeightAutoRow', complete: true, /*noHeader: true*/ },
      { name: 'AHFR', title: '自动高度:固定行数', page: '/AutoTable/AutoHeightFixedRow', complete: true, /*noHeader: true*/ },
      { name: 'AHAR', title: '自动高度:自动行数', page: '/AutoTable/AutoHeightAutoRow', complete: true, /*noHeader: true*/ },
    ]
  },
  {
    name: 'Ant Design 测试', children: [
      { name: 'Form', title: 'Antd表单校验', page: '/antd/DemoFormValidation', complete: true, /*noHeader: true*/ },
    ]
  },
  {
    name: 'AntdTable表格', children: [
      { name: 'Basic Usage', title: '基本用法', page: '/antd/DemoAntdTable', complete: true, /*noHeader: true*/ },
      { name: 'Check', title: '单选多选', page: '/antd/DemoAntdTableCheck', complete: true, /*noHeader: true*/ },
      { name: 'Fixed Row', title: '固定行列', page: '/antd/DemoAntdTableFixed', complete: true, /*noHeader: true*/ },
      { name: 'Render', title: '自定义内容', page: '/antd/DemoAntdTableRender', complete: true, /*noHeader: true*/ },
      { name: 'Formatter', title: '格式化值', page: '/antd/DemoAntdTableFormatter', complete: true, /*noHeader: true*/ },
      { name: 'OverflowTooltip', title: '格式化值', page: '/antd/DemoAntdTableOverflowTooltip', complete: true, /*noHeader: true*/ },
      { name: 'Edit Control', title: '编辑控制', page: '/antd/DemoAntdTableEditControl', complete: true, /*noHeader: true*/ },
      { name: 'Expand', title: '展开列', page: '/antd/DemoAntdTableExpand', complete: true, /*noHeader: true*/ },
      { name: 'Cell Span', title: '合并单元格', page: '/antd/DemoAntdTableCellSpan', complete: true, /*noHeader: true*/ },
      { name: 'Tree', title: '树形表格', page: '/antd/DemoAntdTableTree', complete: true, /*noHeader: true*/ },
      { name: 'AdcDraggable', title: '排序列', page: '/antd/DemoAntdTableAdcDraggier', complete: true, /*noHeader: true*/ },
      { name: 'Col Draggable', title: '行列排序', page: '/antd/DemoAntdTableColDraggable', complete: true, /*noHeader: true*/ },
      { name: 'Class Style', title: '行列样式', page: '/antd/DemoAntdTableClassAndStyle', complete: true, /*noHeader: true*/ },
      { name: 'AdcOperation', title: '操作列', page: '/antd/DemoAdcOperation', complete: true, /*noHeader: true*/ },
      { name: 'Pagination', title: '滚动及高度', page: '/antd/DemoAntdTableShowRow', complete: true, /*noHeader: true*/ },
      { name: 'Summary Row', title: '合计行', page: '/antd/DemoAntdTableSummary', complete: true, /*noHeader: true*/ },
      // { name: 'Virtual Cell', title: '虚拟列表', page: '/antd/DemoAntdVirtualTable', complete: true, /*noHeader: true*/ },
      { name: 'Filter Sort', title: '筛选排序', page: '/antd/DemoAntdTableFilterSort', complete: true, /*noHeader: true*/ },
    ]
  },
  {
    name: 'AntdTable表格列', children: [
      { name: 'Editor', title: '简单列', page: '/antd/DemoAntdTableColumns', complete: true, /*noHeader: true*/ },
      { name: 'AdcSelect', title: '下拉选择', page: '/antd/DemoAdcSelect', complete: true, /*noHeader: true*/ },
      { name: 'AdcDate', title: '日期列', page: '/antd/DemoAntdTableAdcDate', complete: true, /*noHeader: true*/ },
      { name: 'AdcTime', title: '时间列', page: '/antd/DemoAntdTableAdcTime', complete: true, /*noHeader: true*/ },
      { name: 'AdcAddress', title: '地址列', page: '/antd/DemoAntdTableAdcAddress', complete: true, /*noHeader: true*/ },
    ]
  }
];
